package com.yx.front.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论回复表
 * </p>
 *
 * @author YangXiong
 * @since 2023-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_comments_reply")
@ApiModel(value="CommentsReply对象", description="评论回复表")
public class CommentsReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评论主表id")
    private Long commentId;

    @ApiModelProperty(value = "评论者id")
    private Long fromId;

    @ApiModelProperty(value = "评论者名字")
    private String fromName;

    @ApiModelProperty(value = "评论者头像")
    private String fromAvatar;

    @ApiModelProperty(value = "被评论者id")
    private Long toId;

    @ApiModelProperty(value = "被评论者名字")
    private String toName;

    @ApiModelProperty(value = "被评论者头像")
    private String toAvatar;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
